package com.example.mapper;

import com.example.entity.Order;
import org.apache.ibatis.annotations.Select;
import org.mapstruct.Mapper;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface OrderMapper {
    void insert(List<Order> orders,LocalDateTime localDateTime);

    @Select("select * from mall_backend.`order` where cus_id = #{cusId}")
    List<Order> select(Integer id);
}
